package com.sanweibook.jhook.biz;

import com.sanweibook.jhook.common.tool.excel.annotation.Excel;
import com.sanweibook.jhook.common.tool.excel.annotation.ExcelColumn;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by twg on 2017/5/29.
 */
@Data
@Excel(title = "excel导出测试")
public class ExcelPO implements Serializable{
    @NotNull(message = "提交日期不能为空")
    @ExcelColumn( columnName = "提交日期",columnIndex = 0,dataFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @NotBlank(message = "业务部门不能为空")
    @ExcelColumn( columnName = "业务部门",columnIndex = 1)
    private String departmentName;
    @ExcelColumn( columnName = "退回次数",columnIndex = 2)
    private Integer returnCount;
    private List<ExcelUserPO> userPOS;

}
